package com.xqboss.apps.dto.system;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;

/**
 * @author Trent
 * @date 2023/8/24
 */
@Data
@ApiModel
public class EditRechargeAmountConfigDto {

    @ApiModelProperty("修改时传")
    private Long id;

    @ApiModelProperty("排序")
    private Long sort;

    @ApiModelProperty(value = "充值金额", required = true)
    @Positive(message = "充值金额只能为正数")
    private BigDecimal rechargeAmount;

    /**
     * 应支付金额
     */
    @ApiModelProperty(value = "支付金额", required = true)
    @Positive(message = "充值金额只能为正数")
    private BigDecimal paymentAmount;

    /**
     * 商品名称
     */
    @ApiModelProperty(value = "商品名称", required = true)
    @NotNull(message = "商品名不能为空")
    private String spuName;
}
